import {
  WEBAPI
} from '@/settings'
import request from '@/utils/request'
export const upFileUrl = WEBAPI + '/api/app/attachment'

export function upFileBase64(data) {
  return request({
    url: upFileUrl + 'base64',
    method: 'post',
    data: data,
    content_type: 'multipart/form-data'
  })
}

/**
 * 匿名上传文件
 * @param data
 * @returns {*}
 */
export function upFileBase64Anon(data) {
  return request({
    url: upFileUrl + '/upload-anon',
    method: 'post',
    data: data,
    content_type: 'multipart/form-data'
  })
}

